<layout name="master" />

<div class="row">
    <ol class="breadcrumb">
        <li><a href="{:U('Home/Index/index')}"><span class="glyphicon glyphicon-home"></span></a></li>
        <li class="active">系统管理</li>
    </ol>
</div><!--/.row-->

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">分类管理</h1>
    </div>
    <a href="{:U('Home/List/index')}" style="margin-left: 1.2%;margin-bottom: 1.2%;background: red;border: 1px red" class="btn btn-primary">刷新</a>
</div>
<ul class="nav nav-tabs" role="tablist">
    <li class="active"><a href="">分类管理</a></li>
    <li><a href="{:U('Home/List/store')}">添加顶级分类</a></li>
</ul>


<form action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th width="80">编号</th>
                    <th>名称</th>
                    <th>修改时间</th>
                    <th>是否收费</th>
                    <th>金额</th>
                    <th width="200">操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="data" id="vo">
                <tr>
                    <td>{$vo['cid']}</td>
                    <td>{$vo['_typename']}</td>
                    <td><?php echo date("Y-m-d H:i:s", $vo['type_time'] ) ?></td>
                    <td>{$vo['type_is_obj']}</td>
                    <td style="color: red">{$vo['type_value']}</td>
                    <td>
                        <div class="btn-group">
                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="{:U('Home/List/addson',['id'=>$vo['cid']])}">添加子级分类</a></li>
                                <li class="divider"></li>
                                <li><a href="{:U('Home/List/edit',['id'=>$vo['cid']])}">编辑</a></li>
                                <li class="divider"></li>
                                <li><a href="{:U('Home/List/delect',['id'=>$vo['cid']])}">删除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
    </form>
